﻿/*** Developed by Anirban Bhattacharya */

using System;

namespace WS.EKA.Utilities.Helpers
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class PropertyDataColumnMapper : Attribute
    {
        #region Property for attributes
        // Field for column name
        public string ColumnName { get; set; }

        //Type
        public bool IsPrimary { get; set; }

        #endregion

        #region Constructor
        //Default
        public PropertyDataColumnMapper() { }

        //Using Column Name
        public PropertyDataColumnMapper(string ColumnName) : this(ColumnName, false) { }

        //Chain
        public PropertyDataColumnMapper(string ColumnName, bool IsPrimary)
        {
            this.ColumnName = ColumnName;
            this.IsPrimary = IsPrimary;
        }

        #endregion
    }
}
